package com.oracle.application.feign;




import com.oracle.application.feign.vo.AdminsVo;
import com.oracle.application.vo.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "CLOUD-ADMINS-SERVICE",path = "/admins")
public interface AdminFeign {

    @PostMapping("/pwd")
    public R<AdminsVo> adminByPwd(@RequestBody AdminsVo admins);

    @GetMapping("/delete")
    public R deleteByAdmin(Integer id);
}
